﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="LanguagePairServiceModule.cs" company="WordSteps.com">
//   All rigths reserved
// </copyright>
// <summary>
//   Defines the LanguagePairServiceModule type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace RapidDict.Modules.LanguagePairService
{
    using Microsoft.Practices.Composite.Modularity;
    using Microsoft.Practices.Unity;
    using RapidDict.Infrastructure.Interfaces;
    using RapidDict.Modules.LanguagePairService.Services;

    [Module(ModuleName = "LanguagePairServiceModule")]
    public class LanguagePairServiceModule : IModule
    {
        IUnityContainer container;

        public LanguagePairServiceModule(IUnityContainer container)
        {
            this.container = container;
        }

        public void Initialize()
        {
            this.container.RegisterInstance<ILanguagePairService>(new LanguagePairService());
        }
    }
}
